home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3vcam.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_VIEWCAM_H = 1;
- include("oops/r3model.js")
- include("oops/r3coords.js")
- include("oops/r3matrix.js")
- include("oops/r3gfx.js")
-
-
- var R3CLID_VCAM = 71;
-
-
-
-
- // Description: Sets the current orientation of camera as the native orientation
-
- R3VCM_SETNATIVEORIENTATION = 71005;
-
- function mR3VCM_SETNATIVEORIENTATION() {
- DoA(this.r3obj, 71005, 0, R3TID_INTEGER, 0);
- }
-
- // Description: resets the camera to its native orientation
-
- R3VCM_GOTONATIVEORIENTATION = 71006;
-
- function mR3VCM_GOTONATIVEORIENTATION() {
- DoA(this.r3obj, 71006, 0, R3TID_INTEGER, 0);
- }
-
- // Description: rotates camera in its native orientation
- // p1: Number, amount of horiz. rotation in radians
- // p2: Number, amount of vert. rotation in radians
- // p3: Integer, rotate flags as defined below, defines what to rotate
-
- R3VCM_ROTATE = 71007;
-
- function mR3VCM_ROTATE(p1, p2, p3) {
- DoA3(this.r3obj, 71007, p1, R3TID_FLOAT, 0, p2, R3TID_FLOAT, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: sets the hotpoint to a common value
- // p3: r3Vect, the new hot point position
-
- R3VCCM_SETALLHOTPOINTS = 71008;
-
- function mR3VCCM_SETALLHOTPOINTS(p3) {
- DoA(this.r3obj, 71008, p3, R3TID_VECTOR, 0);
- }
-
- // Description: maps a 2d sceen coordinate to a point on orthogonal plane at unit distance
- // from the camera
-
- R3VCM_DO2DTODIRPOINT = 71009;
-
- function mR3VCM_DO2DTODIRPOINT() {
- DoA(this.r3obj, 71009, 0, R3TID_INTEGER, 0);
- }
-
- // Description: projects a point to the screen coords. Positive t coord indicates if it was
- // in front of the camera.
-
- R3VCM_DO3DTO2DANDSIGN = 71010;
-
- function mR3VCM_DO3DTO2DANDSIGN() {
- DoA(this.r3obj, 71010, 0, R3TID_INTEGER, 0);
- }
-
- // Description: finds the screen coords of the point where the given line goes through minclipdist
- // plane
- // p3: r3Vect, result vector. p3->r & s will contain the screen coords.
-
- R3VCM_CLIPLINE = 71012;
-
- function mR3VCM_CLIPLINE(p3) {
- DoA(this.r3obj, 71012, p3, R3TID_VECTOR, 0);
- }
-
- // Description: maps a 2d screen coordinate (on floating point form) to input plane
-
- R3VCM_DO2DFLOATTO3D = 71013;
-
- function mR3VCM_DO2DFLOATTO3D() {
- DoA(this.r3obj, 71013, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Rotates from current view to closest main native projection axis direction
- // p1: Integer, rotate flags
- // p3: Integer, see rotate directions below
-
- R3VCM_ROTATETOMAIN = 71014;
-
- function mR3VCM_ROTATETOMAIN(p1, p3) {
- DoA2(this.r3obj, 71014, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: finds the screen coords of the point where the given line goes through maxclipdist
- // plane
- // p3: r3Vect, result vector. p3->r & s will contain the screen coords.
-
- R3VCM_CLIPFARLINE = 71015;
-
- function mR3VCM_CLIPFARLINE(p3) {
- DoA(this.r3obj, 71015, p3, R3TID_VECTOR, 0);
- }
-
- // Description: finds the screen coords of the point where the given line goes through a
- // clip plane
-
- R3VCM_CLIPLINEGENERAL = 71016;
-
- function mR3VCM_CLIPLINEGENERAL() {
- DoA(this.r3obj, 71016, 0, R3TID_INTEGER, 0);
- }
-
- var R3VCAM_ROTATEUP = 0;
- var R3VCAM_ROTATEDOWN = 1;
- var R3VCAM_ROTATELEFT = 2;
- var R3VCAM_ROTATERIGHT = 3;
- var R3VCROTATE_CAMERA = 1;
- var R3VCROTATE_IPLANE = 2;
- var R3VCROTATE_BANK = 4;
- var R3VCROTATE_ABOUTVP = 8;
-
-
-
- R3VCA_Projection = 71501;
- function SetR3VCA_Projection(value) {
- R3Set(this.r3obj, R3VCA_Projection, value, R3TID_INTEGER, 0);
- }
-
- function GetR3VCA_Projection() {
- return R3Get(this.r3obj, R3VCA_Projection, R3TID_INTEGER, 0);
- }
-
- R3VCA_Width = 71502;
- function SetR3VCA_Width(value) {
- R3Set(this.r3obj, R3VCA_Width, value, R3TID_INTEGER, 0);
- }
-
- function GetR3VCA_Width() {
- return R3Get(this.r3obj, R3VCA_Width, R3TID_INTEGER, 0);
- }
-
- R3VCA_Height = 71503;
- function SetR3VCA_Height(value) {
- R3Set(this.r3obj, R3VCA_Height, value, R3TID_INTEGER, 0);
- }
-
- function GetR3VCA_Height() {
- return R3Get(this.r3obj, R3VCA_Height, R3TID_INTEGER, 0);
- }
-
- R3VCA_AspectRatio = 71504;
- function SetR3VCA_AspectRatio(value) {
- R3Set(this.r3obj, R3VCA_AspectRatio, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_AspectRatio() {
- return R3Get(this.r3obj, R3VCA_AspectRatio, R3TID_FLOAT, 0);
- }
-
- R3VCA_Position = 71505;
- function SetR3VCA_Position(value) {
- R3Set(this.r3obj, R3VCA_Position, value, R3TID_VECTOR, 0);
- }
-
- function GetR3VCA_Position() {
- return R3Get(this.r3obj, R3VCA_Position, R3TID_VECTOR, 0);
- }
-
- R3VCA_Aimpoint = 71506;
- function SetR3VCA_Aimpoint(value) {
- R3Set(this.r3obj, R3VCA_Aimpoint, value, R3TID_VECTOR, 0);
- }
-
- function GetR3VCA_Aimpoint() {
- return R3Get(this.r3obj, R3VCA_Aimpoint, R3TID_VECTOR, 0);
- }
-
- R3VCA_Heading = 71507;
- function SetR3VCA_Heading(value) {
- R3Set(this.r3obj, R3VCA_Heading, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_Heading() {
- return R3Get(this.r3obj, R3VCA_Heading, R3TID_FLOAT, 0);
- }
-
- R3VCA_Pitching = 71508;
- function SetR3VCA_Pitching(value) {
- R3Set(this.r3obj, R3VCA_Pitching, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_Pitching() {
- return R3Get(this.r3obj, R3VCA_Pitching, R3TID_FLOAT, 0);
- }
-
- R3VCA_Banking = 71509;
- function SetR3VCA_Banking(value) {
- R3Set(this.r3obj, R3VCA_Banking, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_Banking() {
- return R3Get(this.r3obj, R3VCA_Banking, R3TID_FLOAT, 0);
- }
-
- R3VCA_IPlaneHeading = 71510;
- function SetR3VCA_IPlaneHeading(value) {
- R3Set(this.r3obj, R3VCA_IPlaneHeading, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_IPlaneHeading() {
- return R3Get(this.r3obj, R3VCA_IPlaneHeading, R3TID_FLOAT, 0);
- }
-
- R3VCA_IPlanePitching = 71511;
- function SetR3VCA_IPlanePitching(value) {
- R3Set(this.r3obj, R3VCA_IPlanePitching, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_IPlanePitching() {
- return R3Get(this.r3obj, R3VCA_IPlanePitching, R3TID_FLOAT, 0);
- }
-
- R3VCA_IPlaneBanking = 71512;
- function SetR3VCA_IPlaneBanking(value) {
- R3Set(this.r3obj, R3VCA_IPlaneBanking, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_IPlaneBanking() {
- return R3Get(this.r3obj, R3VCA_IPlaneBanking, R3TID_FLOAT, 0);
- }
-
- R3VCA_Scale = 71513;
- function SetR3VCA_Scale(value) {
- R3Set(this.r3obj, R3VCA_Scale, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_Scale() {
- return R3Get(this.r3obj, R3VCA_Scale, R3TID_FLOAT, 0);
- }
-
- R3VCA_CoordSys = 71514;
- function SetR3VCA_CoordSys(value) {
- R3Set(this.r3obj, R3VCA_CoordSys, value, R3TID_COORDSYS, 0);
- }
-
- function GetR3VCA_CoordSys() {
- return R3Get(this.r3obj, R3VCA_CoordSys, R3TID_COORDSYS, 0);
- }
-
- R3VCA_IPCoordSys = 71515;
- function SetR3VCA_IPCoordSys(value) {
- R3Set(this.r3obj, R3VCA_IPCoordSys, value, R3TID_COORDSYS, 0);
- }
-
- function GetR3VCA_IPCoordSys() {
- return R3Get(this.r3obj, R3VCA_IPCoordSys, R3TID_COORDSYS, 0);
- }
-
- R3VCA_Distance = 71516;
- function SetR3VCA_Distance(value) {
- R3Set(this.r3obj, R3VCA_Distance, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_Distance() {
- return R3Get(this.r3obj, R3VCA_Distance, R3TID_FLOAT, 0);
- }
-
- R3VCA_Hotpoint = 71517;
- function SetR3VCA_Hotpoint(value) {
- R3Set(this.r3obj, R3VCA_Hotpoint, value, R3TID_VECTOR, 0);
- }
-
- function GetR3VCA_Hotpoint() {
- return R3Get(this.r3obj, R3VCA_Hotpoint, R3TID_VECTOR, 0);
- }
-
- R3VCA_ModelView = 71518;
- function GetR3VCA_ModelView() {
- return R3Get(this.r3obj, R3VCA_ModelView, R3TID_MATRIX, 0);
- }
-
- R3VCA_ViewIPAngle = 71519;
- function GetR3VCA_ViewIPAngle() {
- return R3Get(this.r3obj, R3VCA_ViewIPAngle, R3TID_FLOAT, 0);
- }
-
- R3VCA_KeepIPlaneOrthogonal = 71520;
- function SetR3VCA_KeepIPlaneOrthogonal(value) {
- R3Set(this.r3obj, R3VCA_KeepIPlaneOrthogonal, value, R3TID_INTEGER, 0);
- }
-
- function GetR3VCA_KeepIPlaneOrthogonal() {
- return R3Get(this.r3obj, R3VCA_KeepIPlaneOrthogonal, R3TID_INTEGER, 0);
- }
-
- R3VCA_RelHeading = 71522;
- function SetR3VCA_RelHeading(value) {
- R3Set(this.r3obj, R3VCA_RelHeading, value, R3TID_FLOAT, 0);
- }
-
- R3VCA_RelIPlaneHeading = 71525;
- function SetR3VCA_RelIPlaneHeading(value) {
- R3Set(this.r3obj, R3VCA_RelIPlaneHeading, value, R3TID_FLOAT, 0);
- }
-
- R3VCA_NativeCoordSys = 71528;
- function SetR3VCA_NativeCoordSys(value) {
- R3Set(this.r3obj, R3VCA_NativeCoordSys, value, R3TID_COORDSYS, 0);
- }
-
- function GetR3VCA_NativeCoordSys() {
- return R3Get(this.r3obj, R3VCA_NativeCoordSys, R3TID_COORDSYS, 0);
- }
-
- R3VCA_MinClipDist = 71529;
- function SetR3VCA_MinClipDist(value) {
- R3Set(this.r3obj, R3VCA_MinClipDist, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_MinClipDist() {
- return R3Get(this.r3obj, R3VCA_MinClipDist, R3TID_FLOAT, 0);
- }
-
- R3VCA_MaxClipDist = 71530;
- function SetR3VCA_MaxClipDist(value) {
- R3Set(this.r3obj, R3VCA_MaxClipDist, value, R3TID_FLOAT, 0);
- }
-
- function GetR3VCA_MaxClipDist() {
- return R3Get(this.r3obj, R3VCA_MaxClipDist, R3TID_FLOAT, 0);
- }
-
- var R3VCA_ClipResult2D = 71531; // r3Vect[]
- var R3VCA_ClipResult3D = 71532; // r3Vect[]
- R3VCA_PrivateHotp = 71533;
- function SetR3VCA_PrivateHotp(value) {
- R3Set(this.r3obj, R3VCA_PrivateHotp, value, R3TID_INTEGER, 0);
- }
-
- function GetR3VCA_PrivateHotp() {
- return R3Get(this.r3obj, R3VCA_PrivateHotp, R3TID_INTEGER, 0);
- }
-
- R3VCA_NoVertPersp = 71534;
- function SetR3VCA_NoVertPersp(value) {
- R3Set(this.r3obj, R3VCA_NoVertPersp, value, R3TID_INTEGER, 0);
- }
-
- function GetR3VCA_NoVertPersp() {
- return R3Get(this.r3obj, R3VCA_NoVertPersp, R3TID_INTEGER, 0);
- }
-
- var R3VC_PERSPECTIVE = 0;
- var R3VC_ORTHOGRAPHIC = 1;
- var R3VC_TOIPLANE = 0;
- var R3VC_TOIPLANEX = 1;
- var R3VC_TOIPLANEY = 2;
- var R3VC_TOIPLANEZ = 3;
- var R3VC_TOCAMERAPLANE = 4;
- var R3VC_TOCUSTOMPLANE = 5;
- var R3VC_TOAXIS = 6;
-
-
- function r3Vcam () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_VCAM, arguments);
- }
- // Methods
- this.SETNATIVEORIENTATION=mR3VCM_SETNATIVEORIENTATION;
- this.GOTONATIVEORIENTATION=mR3VCM_GOTONATIVEORIENTATION;
- this.ROTATE=mR3VCM_ROTATE;
- this.SETALLHOTPOINTS=mR3VCCM_SETALLHOTPOINTS;
- this.DO2DTODIRPOINT=mR3VCM_DO2DTODIRPOINT;
- this.DO3DTO2DANDSIGN=mR3VCM_DO3DTO2DANDSIGN;
- this.CLIPLINE=mR3VCM_CLIPLINE;
- this.DO2DFLOATTO3D=mR3VCM_DO2DFLOATTO3D;
- this.ROTATETOMAIN=mR3VCM_ROTATETOMAIN;
- this.CLIPFARLINE=mR3VCM_CLIPFARLINE;
- this.CLIPLINEGENERAL=mR3VCM_CLIPLINEGENERAL;
-
- // Attributes
- this.GetProjection=GetR3VCA_Projection;
- this.SetProjection=SetR3VCA_Projection;
- this.GetWidth=GetR3VCA_Width;
- this.SetWidth=SetR3VCA_Width;
- this.GetHeight=GetR3VCA_Height;
- this.SetHeight=SetR3VCA_Height;
- this.GetAspectRatio=GetR3VCA_AspectRatio;
- this.SetAspectRatio=SetR3VCA_AspectRatio;
- this.GetPosition=GetR3VCA_Position;
- this.SetPosition=SetR3VCA_Position;
- this.GetAimpoint=GetR3VCA_Aimpoint;
- this.SetAimpoint=SetR3VCA_Aimpoint;
- this.GetHeading=GetR3VCA_Heading;
- this.SetHeading=SetR3VCA_Heading;
- this.GetPitching=GetR3VCA_Pitching;
- this.SetPitching=SetR3VCA_Pitching;
- this.GetBanking=GetR3VCA_Banking;
- this.SetBanking=SetR3VCA_Banking;
- this.GetIPlaneHeading=GetR3VCA_IPlaneHeading;
- this.SetIPlaneHeading=SetR3VCA_IPlaneHeading;
- this.GetIPlanePitching=GetR3VCA_IPlanePitching;
- this.SetIPlanePitching=SetR3VCA_IPlanePitching;
- this.GetIPlaneBanking=GetR3VCA_IPlaneBanking;
- this.SetIPlaneBanking=SetR3VCA_IPlaneBanking;
- this.GetScale=GetR3VCA_Scale;
- this.SetScale=SetR3VCA_Scale;
- this.GetCoordSys=GetR3VCA_CoordSys;
- this.SetCoordSys=SetR3VCA_CoordSys;
- this.GetIPCoordSys=GetR3VCA_IPCoordSys;
- this.SetIPCoordSys=SetR3VCA_IPCoordSys;
- this.GetDistance=GetR3VCA_Distance;
- this.SetDistance=SetR3VCA_Distance;
- this.GetHotpoint=GetR3VCA_Hotpoint;
- this.SetHotpoint=SetR3VCA_Hotpoint;
- this.GetModelView=GetR3VCA_ModelView;
- this.GetViewIPAngle=GetR3VCA_ViewIPAngle;
- this.GetKeepIPlaneOrthogonal=GetR3VCA_KeepIPlaneOrthogonal;
- this.SetKeepIPlaneOrthogonal=SetR3VCA_KeepIPlaneOrthogonal;
- this.SetRelHeading=SetR3VCA_RelHeading;
- this.SetRelIPlaneHeading=SetR3VCA_RelIPlaneHeading;
- this.GetNativeCoordSys=GetR3VCA_NativeCoordSys;
- this.SetNativeCoordSys=SetR3VCA_NativeCoordSys;
- this.GetMinClipDist=GetR3VCA_MinClipDist;
- this.SetMinClipDist=SetR3VCA_MinClipDist;
- this.GetMaxClipDist=GetR3VCA_MaxClipDist;
- this.SetMaxClipDist=SetR3VCA_MaxClipDist;
- this.GetPrivateHotp=GetR3VCA_PrivateHotp;
- this.SetPrivateHotp=SetR3VCA_PrivateHotp;
- this.GetNoVertPersp=GetR3VCA_NoVertPersp;
- this.SetNoVertPersp=SetR3VCA_NoVertPersp;
- }
-
- r3Vcam.prototype=new r3Model;
- // r3vcam.h_H